package com.colourclash.fruitopia.enums 
{
	/**
	 * ...
	 * @author Patrick Hammond
	 */
	public class FruitType 
	{
		public static const BANANA:String = "Banana";
		public static const CHERRY:String = "Cherry";
		public static const GRAPES:String = "Grapes";
		public static const MELON:String = "Melon";
		public static const PINEAPPLE:String = "Pineapple";
		public static const PLUM:String = "Plum";
		public static const STRAWBERRY:String = "Strawberry";
	
		public static function getTypeByIndex(index:int):String
		{
			return [BANANA, CHERRY, GRAPES, MELON, PINEAPPLE, PLUM, STRAWBERRY][index % 7];
		}
	}
}